﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TruckWatch.Cloud.BusinessLogic
{
    public static class CommonUtil
    {
        public static double TryParseDouble(string input)
        {
            double output = 0;

            if (input == null)
                return output;

            double.TryParse(input, out output);
            return output;
        }

        public static int TryParseInt(string input)
        {
            int output = 0;

            if (input == null)
                return output;

            int.TryParse(input, out output);
            return output;
        }

    }
}
